
package tx.bj12320.model.enums;

import java.util.LinkedHashMap;

import cn.org.rapid_framework.lang.enums.EnumBase;
import cn.org.rapid_framework.lang.enums.EnumBaseUtils;

public enum ActivitySysUserTypeEnum implements EnumBase<String>{
	bzcs(new String("bzcs"),"BJ12320"),
	xtdbsh(new String("xtdbsh"),"BJ12320"),
	zgzrsd(new String("zgzrsd"),"BJ12320"),
	xtdbff(new String("xtdbff"),"BJ12320"),
	xtdbgd(new String("xtdbgd"),"BJ12320"),
	llycb(new String("llycb"),"HOSPITAL"),
	zgyldyp(new String("zgyldyp"),"HOSPITAL"),
	dccl(new String("dccl"),"HOSPITAL"),
	zgyldqf(new String("zgyldqf"),"HOSPITAL"),
	jgfk(new String("jgfk"),"HOSPITAL"),
	jllycb(new String("jllycb"),"SECTION_BOARD_OF_HEALTH"),
	jldyp(new String("jldyp"),"SECTION_BOARD_OF_HEALTH"),
	jllyff(new String("jllyff"),"SECTION_BOARD_OF_HEALTH"),
	jbmcb(new String("jbmcb"),"SECTION_BOARD_OF_HEALTH"),
	jldqf(new String("jldqf"),"SECTION_BOARD_OF_HEALTH"),
	jjgfk(new String("jjgfk"),"SECTION_BOARD_OF_HEALTH")
	;

	private final String code;
	private final String desc;
	ActivitySysUserTypeEnum(String code,String desc) {
		this.code = code;
		this.desc = desc;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}

	public static ActivitySysUserTypeEnum getByCode(String code) {
		return EnumBaseUtils.getByCode(code, values());
	}

	public static ActivitySysUserTypeEnum getRequiredByCode(String code) throws IllegalArgumentException {
		return EnumBaseUtils.getRequiredByCode(code, values());
	}

	@SuppressWarnings("unchecked")
	public static LinkedHashMap<String, String> toMap() {
	    return EnumBaseUtils.toMap(values());
	}
}
